


<form action="{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,saveramki.html" enctype="multipart/form-data" method="post">

<table cellpadding="0" cellspacing="0" >
	<tr>
		<th><input type="submit" value="Zapisz ustawienia"/> <input type="button" value="Przywróć domyślne" onclick="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,resetujUstawienia.html';"/></th>
	</tr>

	<tr>
	
		<td width="100%" valign="top" style="padding: 1px;">	
			<table style="margin: 1px;" width="100%">
			
			
				<tr>
					<th colspan="2">
						<h2>Baner górny strony</h2>
					</th>	
				</tr>
				<tr>
					<th>Wysokość<br/>Szerokość</th>
					<td align="right">
						<input type="text" name="settings[baner_wysokosc]" value="{$settings.baner_wysokosc}" style="width: 50px;"/>
						<br/>dowolna
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<div style="background: url({$smarty.const.HTTP_URL}photo,/public/users/{$smarty.server.HTTP_HOST|replace:'www.':''}/header-photo.jpg,400,200,100.html) no-repeat center center; width: 260px; height: 100px; padding: 20px; over">obecny baner</div>
						<input type="file" name="baner_file" /><input type="button" value="Usuń" onclick="document.location = '{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,del_baner_file.html';"/>
					</td>
				</tr>
				
				
				<tr>
					<th colspan="2">
						<h2>Menu górne</h2>
					</th>	
				</tr>	
				<tr>
					<th>Kolor tła</th>
					<td align="right">
						<input type="text" name="settings[menu_top_kolor_tla]" id="menu_top_kolor_tla" value="{$settings.menu_top_kolor_tla|default:''}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.menu_top_kolor_tla|default:'#E4E4E4'};"/>
						<input type="button" value="Bez tła" onclick="$('#menu_top_kolor_tla').attr('value','none');$('#menu_top_kolor_tla').css('background','none');"/>
						<input type="button" value="Domyślne" onclick="$('#menu_top_kolor_tla').attr('value','');$('#menu_top_kolor_tla').css('background','');"/>
					</td>
				</tr>
				<tr>
					<th>Kolor czcionki</th>
					<td align="right">
						<input type="text" name="settings[menu_top_kolor_czcionki]" id="menu_top_kolor_czcionki" value="{$settings.menu_top_kolor_czcionki|default:'#555555'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.menu_top_kolor_czcionki|default:'#555555'};"/>
					</td>
				</tr>
				<tr>
					<th>Kolor czcionki aktywnej</th>
					<td align="right">
						<input type="text" name="settings[menu_top_kolor_czcionki_mousover]" id="menu_top_kolor_czcionki_mousover" value="{$settings.menu_top_kolor_czcionki_mousover|default:'#326ea1'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.menu_top_kolor_czcionki_mousover|default:'#326ea1'};"/>
					</td>
				</tr>
				<tr>
					<th>Kolor tła czcionki aktywnej</th>
					<td align="right">
						<input type="text" name="settings[menu_top_kolor_tla_select]" id="menu_top_kolor_tla_select" value="{$settings.menu_top_kolor_tla_select|default:''}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.menu_top_kolor_tla_select|default:'#E4E4E4'};"/>
						<input type="button" value="Bez tła" onclick="$('#menu_top_kolor_tla_select').attr('value','none');$('#menu_top_kolor_tla_select').css('background','none');"/>
						<input type="button" value="Domyślne" onclick="$('#menu_top_kolor_tla_select').attr('value','');$('#menu_top_kolor_tla_select').css('background','');"/>						
					</td>
				</tr>
				<tr>
					<th>Wielkość czcionki</th>
					<td align="right">
						<select name="settings[menu_top_wielkosc_czcionki]" style="width: 80px;">
						<option value="10" {if $settings.menu_top_wielkosc_czcionki eq 10} selected="selected"{/if}>10</option>
						<option value="11" {if $settings.menu_top_wielkosc_czcionki eq 11} selected="selected"{/if}>11</option>
						<option value="12" {if $settings.menu_top_wielkosc_czcionki eq 12} selected="selected"{/if}>12</option>
						<option value="13" {if $settings.menu_top_wielkosc_czcionki eq 13} selected="selected"{/if}>13</option>
						<option value="14" {if $settings.menu_top_wielkosc_czcionki eq 14} selected="selected"{/if}>14</option>
						<option value="15" {if $settings.menu_top_wielkosc_czcionki eq 15} selected="selected"{/if}>15</option>
						<option value="16" {if $settings.menu_top_wielkosc_czcionki eq 16} selected="selected"{/if}>16</option>
						<option value="17" {if $settings.menu_top_wielkosc_czcionki eq 17} selected="selected"{/if}>17</option>
						<option value="18" {if $settings.menu_top_wielkosc_czcionki eq 18} selected="selected"{/if}>18</option>
						<option value="19" {if $settings.menu_top_wielkosc_czcionki eq 19} selected="selected"{/if}>19</option>
						<option value="20" {if $settings.menu_top_wielkosc_czcionki eq 20} selected="selected"{/if}>20</option>
						</select>					
					</td>
				</tr>
				
				
				<tr>
					<th colspan="2">
						<h2>Tło strony</h2>
					</th>	
				</tr>
				<tr>
					<th>Kolor tła strony</th>
					<td align="right">
						<input type="text" name="settings[body_kolor_tla]" id="body_kolor_tla" value="{$settings.body_kolor_tla|default:''}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.body_kolor_tla|default:'#E4E4E4'};"/>
						<input type="button" value="Bez tła" onclick="$('#body_kolor_tla').attr('value','none');$('#body_kolor_tla').css('background','none');"/>
						<input type="button" value="Domyślne" onclick="$('#body_kolor_tla').attr('value','');$('#body_kolor_tla').css('background','');"/>
					</td>
				</tr>	
				<tr>
				
				<th>Plik tła strony</th>
					<td align="right">
						<select name="settings[main_plik_tla_repeat]" style="width: 110px;">
						<option value="no-repeat" {if $settings.main_plik_tla_repeat eq "no-repeat"}selected="selected"{/if}>Nie powtarzaj</option>
						<option value="no-repeat 0 0; background-attachment: fixed" {if $settings.main_plik_tla_repeat eq "no-repeat 0 0; background-attachment: fixed"}selected="selected"{/if}>Nie powtarzaj, nie skroluj</option>
						<option value="repeat" {if $settings.main_plik_tla_repeat eq "repeat"}selected="selected"{/if}>Powtarzaj w prawo i w dół</option>
						<option value="repeat-x" {if $settings.main_plik_tla_repeat eq "repeat-x"}selected="selected"{/if}>Powtarzaj w prawo</option>
						<option value="repeat-y" {if $settings.main_plik_tla_repeat eq "repeat-y"}selected="selected"{/if}>Powtarzaj w dół</option>
						</select>
					</td>
				</tr>	
				<tr>
					<td colspan="2" align="right">
						<input type="file" name="main_plik_tla_tresci" /><input type="button" value="Usuń" onclick="document.location = '{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,del_main_plik_tlatresci.html';"/>
					</td>
				</tr>												
				<tr>
					<th>Kolor tła tresci</th>
					<td align="right">
						<input type="text" name="settings[main_kolor_tla]" id="main_kolor_tla" value="{$settings.main_kolor_tla|default:''}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.main_kolor_tla|default:'#E4E4E4'};"/>
						<input type="button" value="Bez tła" onclick="$('#main_kolor_tla').attr('value','none');$('#main_kolor_tla').css('background','none');"/>
						<input type="button" value="Domyślne" onclick="$('#main_kolor_tla').attr('value','');$('#main_kolor_tla').css('background','');"/>
					</td>
				</tr>
				<tr>
					<th>Plik tła tresci</th>
					<td align="right">
						<select name="settings[main_plik_tla_tresci_repeat]" style="width: 110px;">
						<option value="no-repeat" {if $settings.main_plik_tla_tresci_repeat eq "no-repeat"}selected="selected"{/if}>Nie powtarzaj</option>
						<option value="no-repeat 0px 0px; background-attachment: fixed" {if $settings.main_plik_tla_tresci_repeat eq "no-repeat 0 0 ; background-attachment: fixed"}selected="selected"{/if}>Nie powtarzaj, nie skroluj</option>
						<option value="repeat" {if $settings.main_plik_tla_tresci_repeat eq "repeat"}selected="selected"{/if}>Powtarzaj w prawo i w dół</option>
						<option value="repeat-x" {if $settings.main_plik_tla_tresci_repeat eq "repeat-x"}selected="selected"{/if}>Powtarzaj w prawo</option>
						<option value="repeat-y" {if $settings.main_plik_tla_tresci_repeat eq "repeat-y"}selected="selected"{/if}>Powtarzaj w dół</option>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<input type="file" name="main_plik_tla" /><input type="button" value="Usuń" onclick="document.location = '{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,del_main_plik_tla.html';"/>
					</td>
				</tr>	
				<tr>
					<th>Kolor czcionki treści</th>
					<td align="right">
						<input type="text" name="settings[main_kolor_czcionki_p]" id="main_kolor_czcionki_p" value="{$settings.main_kolor_czcionki_p|default:'#666666'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.main_kolor_czcionki_p|default:'#666666'};"/>
					</td>
				</tr>
				<tr>
					<th>Kolor linków w treści</th>
					<td align="right">
						<input type="text" name="settings[main_kolor_czcionki_a]" id="main_kolor_czcionki_a" value="{$settings.main_kolor_czcionki_a|default:'#326ea1'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.main_kolor_czcionki_a|default:'#326ea1'};"/>
					</td>
				</tr>				
				<tr>
					<th colspan="2">
						<h2>Nagłówki w treści</h2>
					</th>	
				</tr>
				<tr>
					<th>Kolor czcionki nagł.H1<br/>
						Kolor podkreślenia H1<br/>
						Styl/Wielkość czcionki<br/>
							Grubość podkreślenia
					</th>
					<td align="right">
						<input type="text" name="settings[h1_kolor]" id="h1_kolor" value="{$settings.h1_kolor|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.h1_kolor|default:'#000000'};"/>
						<br/>
						<input type="text" name="settings[h1_kolor_lini]" id="h1_kolor_lini" value="{$settings.h1_kolor_lini|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.h1_kolor_lini|default:'#000000'};"/>
						<br/>
						<select name="settings[h1_style]" style="width: 60px;">
							<option value="font-style: normal;" {if $settings.h1_style eq "font-style: normal;"}selected="selected"{/if}>Normalny</option>
							<option value="font-style: italic;" {if $settings.h1_style eq "font-style: italic;"}selected="selected"{/if}>Pochylony</option>
							<option value="font-style: normal; font-weight: bold;" {if $settings.h1_style eq "font-style: normal; font-weight: bold;"}selected="selected"{/if}>Pogrubiony</option>
							<option value="font-style: italic; font-weight: bold;" {if $settings.h1_style eq "font-style: italic; font-weight: bold;"}selected="selected"{/if}>Pochylony-pogrubiony</option>
						</select> 
						<select name="settings[h1_size]" style="width: 40px;">
							<option value="0.1" {if $settings.h1_size eq "0.1"} selected="selected"{/if}>0.1em</option>
							<option value="0.2" {if $settings.h1_size eq "0.2"} selected="selected"{/if}>0.2em</option>
							<option value="0.3" {if $settings.h1_size eq "0.3"} selected="selected"{/if}>0.3em</option>
							<option value="0.4" {if $settings.h1_size eq "0.4"} selected="selected"{/if}>0.4em</option>
							<option value="0.5" {if $settings.h1_size eq "0.5"} selected="selected"{/if}>0.5em</option>
							<option value="0.6" {if $settings.h1_size eq "0.6"} selected="selected"{/if}>0.6em</option>
							<option value="0.7" {if $settings.h1_size eq "0.7"} selected="selected"{/if}>0.7em</option>
							<option value="0.8" {if $settings.h1_size eq "0.8"} selected="selected"{/if}>0.8em</option>
							<option value="0.9" {if $settings.h1_size eq "0.9"} selected="selected"{/if}>0.9em</option>
							<option value="1.0" {if $settings.h1_size eq "1.0"} selected="selected"{/if}>1.0em</option>
							<option value="1.1" {if $settings.h1_size eq "1.1"} selected="selected"{/if}>1.1em</option>
							<option value="1.2" {if $settings.h1_size eq "1.2"} selected="selected"{/if}>1.2em</option>
							<option value="1.3" {if $settings.h1_size eq "1.3"} selected="selected"{/if}>1.3em</option>
							<option value="1.4" {if $settings.h1_size eq "1.4"} selected="selected"{/if}>1.4em</option>
							<option value="1.5" {if $settings.h1_size eq "1.5"} selected="selected"{/if}>1.5em</option>
							<option value="1.6" {if $settings.h1_size eq "1.6"} selected="selected"{/if}>1.6em</option>
							<option value="1.7" {if $settings.h1_size eq "1.7"} selected="selected"{/if}>1.7em</option>
							<option value="1.8" {if $settings.h1_size eq "1.8" or empty($settings.h1_size)} selected="selected"{/if}>1.8em</option>
							<option value="1.9" {if $settings.h1_size eq "1.9"} selected="selected"{/if}>1.9em</option>
							<option value="2.0" {if $settings.h1_size eq "2.0"} selected="selected"{/if}>2.0em</option>
							<option value="2.1" {if $settings.h1_size eq "2.1"} selected="selected"{/if}>2.1em</option>
							<option value="2.2" {if $settings.h1_size eq "2.2"} selected="selected"{/if}>2.2em</option>
							<option value="2.3" {if $settings.h1_size eq "2.3"} selected="selected"{/if}>2.3em</option>
							<option value="2.4" {if $settings.h1_size eq "2.4"} selected="selected"{/if}>2.4em</option>
							<option value="2.5" {if $settings.h1_size eq "2.5"} selected="selected"{/if}>2.5em</option>
						</select>											
						<br/>
						<select name="settings[h1_grubosc_lini]" style="width: 40px;" title="Grubość lini podkreślenia">
							<option value="0" {if $settings.h1_grubosc_lini eq "0"} selected="selected"{/if}>0</option>
							<option value="1" {if $settings.h1_grubosc_lini eq "1" or $settings.h1_grubosc_lini eq ""} selected="selected"{/if}>1</option>
							<option value="2" {if $settings.h1_grubosc_lini eq "2"} selected="selected"{/if}>2</option>
							<option value="3" {if $settings.h1_grubosc_lini eq "3"} selected="selected"{/if}>3</option>
							<option value="4" {if $settings.h1_grubosc_lini eq "4"} selected="selected"{/if}>4</option>
							<option value="5" {if $settings.h1_grubosc_lini eq "5"} selected="selected"{/if}>5</option>
						</select>					
						
					</td>
				</tr>
				<tr>
					<th>Kolor czcionki nagł.H2<br/>
						Kolor podkreślenia H2<br/>
						Styl/Wielkość czcionki<br/>
						Grubość podkreślenia
					</th>
					<td align="right">
						<input type="text" name="settings[h2_kolor]" id="h2_kolor" value="{$settings.h2_kolor|default:'#555555'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.h2_kolor|default:'#555555'};"/>
						<br/>
						<input type="text" name="settings[h2_kolor_lini]" id="h2_kolor_lini" value="{$settings.h2_kolor_lini|default:'#555555'}"  readonly="readonly" style="cursor:pointer; width: 80px; background: {$settings.h2_kolor_lini|default:'#555555'};"/>
						<br/>
						<select name="settings[h2_style]" style="width: 60px;">
							<option value="font-style: normal;" {if $settings.h2_style eq "font-style: normal;"}selected="selected"{/if}>Normalny</option>
							<option value="font-style: italic;" {if $settings.h2_style eq "font-style: italic;"}selected="selected"{/if}>Pochylony</option>
							<option value="font-style: normal; font-weight: bold;" {if $settings.h2_style eq "font-style: normal; font-weight: bold;"}selected="selected"{/if}>Pogrubiony</option>
							<option value="font-style: italic; font-weight: bold;" {if $settings.h2_style eq "font-style: italic; font-weight: bold;"}selected="selected"{/if}>Pochylony-pogrubiony</option>
						</select>
						<select name="settings[h2_size]" style="width: 40px;">
							<option value="0.1" {if $settings.h2_size eq "0.1"} selected="selected"{/if}>0.1em</option>
							<option value="0.2" {if $settings.h2_size eq "0.2"} selected="selected"{/if}>0.2em</option>
							<option value="0.3" {if $settings.h2_size eq "0.3"} selected="selected"{/if}>0.3em</option>
							<option value="0.4" {if $settings.h2_size eq "0.4"} selected="selected"{/if}>0.4em</option>
							<option value="0.5" {if $settings.h2_size eq "0.5"} selected="selected"{/if}>0.5em</option>
							<option value="0.6" {if $settings.h2_size eq "0.6"} selected="selected"{/if}>0.6em</option>
							<option value="0.7" {if $settings.h2_size eq "0.7"} selected="selected"{/if}>0.7em</option>
							<option value="0.8" {if $settings.h2_size eq "0.8"} selected="selected"{/if}>0.8em</option>
							<option value="0.9" {if $settings.h2_size eq "0.9"} selected="selected"{/if}>0.9em</option>
							<option value="1.0" {if $settings.h2_size eq "1.0"} selected="selected"{/if}>1.0em</option>
							<option value="1.1" {if $settings.h2_size eq "1.1"} selected="selected"{/if}>1.1em</option>
							<option value="1.2" {if $settings.h2_size eq "1.2"} selected="selected"{/if}>1.2em</option>
							<option value="1.3" {if $settings.h2_size eq "1.3"} selected="selected"{/if}>1.3em</option>
							<option value="1.4" {if $settings.h2_size eq "1.4"} selected="selected"{/if}>1.4em</option>
							<option value="1.5" {if $settings.h2_size eq "1.5"} selected="selected"{/if}>1.5em</option>
							<option value="1.6" {if $settings.h2_size eq "1.6"  or empty($settings.h2_size)} selected="selected"{/if}>1.6em</option>
							<option value="1.7" {if $settings.h2_size eq "1.7"} selected="selected"{/if}>1.7em</option>
							<option value="1.8" {if $settings.h2_size eq "1.8"} selected="selected"{/if}>1.8em</option>
							<option value="1.9" {if $settings.h2_size eq "1.9"} selected="selected"{/if}>1.9em</option>
							<option value="2.0" {if $settings.h2_size eq "2.0"} selected="selected"{/if}>2.0em</option>
							<option value="2.1" {if $settings.h2_size eq "2.1"} selected="selected"{/if}>2.1em</option>
							<option value="2.2" {if $settings.h2_size eq "2.2"} selected="selected"{/if}>2.2em</option>
							<option value="2.3" {if $settings.h2_size eq "2.3"} selected="selected"{/if}>2.3em</option>
							<option value="2.4" {if $settings.h2_size eq "2.4"} selected="selected"{/if}>2.4em</option>
							<option value="2.5" {if $settings.h2_size eq "2.5"} selected="selected"{/if}>2.5em</option>
						</select>											
						<br/>
						<select name="settings[h2_grubosc_lini]" style="width: 40px;" title="Grubość lini podkreślenia">
							<option value="0" {if $settings.h2_grubosc_lini eq "0"} selected="selected"{/if}>0</option>
							<option value="1" {if $settings.h2_grubosc_lini eq "1" or $settings.h2_grubosc_lini eq ""} selected="selected"{/if}>1</option>
							<option value="2" {if $settings.h2_grubosc_lini eq "2"} selected="selected"{/if}>2</option>
							<option value="3" {if $settings.h2_grubosc_lini eq "3"} selected="selected"{/if}>3</option>
							<option value="4" {if $settings.h2_grubosc_lini eq "4"} selected="selected"{/if}>4</option>
							<option value="5" {if $settings.h2_grubosc_lini eq "5"} selected="selected"{/if}>5</option>
						</select>				
					</td>
				</tr>
				<tr>
					<th>Kolor czcionki nagł.H3<br/>
						Kolor podkreślenia H3<br/>
						Styl/Wielkość czcionki<br/>
						Grubość podkreślenia
					</th>
					<td align="right">
						<input type="text" name="settings[h3_kolor]" id="h3_kolor" value="{$settings.h3_kolor|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 60px; background: {$settings.h3_kolor|default:'#000000'};"/>
						<br/>
						<input type="text" name="settings[h3_kolor_lini]" id="h3_kolor_lini" value="{$settings.h3_kolor_lini|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 60px; background: {$settings.h3_kolor_lini|default:'#000000'};"/>
						<br/>
						<select name="settings[h3_style]" style="width: 60px;">
							<option value="font-style: normal;" {if $settings.h3_style eq "font-style: normal;"}selected="selected"{/if}>Normalny</option>
							<option value="font-style: italic;" {if $settings.h3_style eq "font-style: italic;"}selected="selected"{/if}>Pochylony</option>
							<option value="font-style: normal; font-weight: bold;" {if $settings.h3_style eq "font-style: normal; font-weight: bold;"}selected="selected"{/if}>Pogrubiony</option>
							<option value="font-style: italic; font-weight: bold;" {if $settings.h3_style eq "font-style: italic; font-weight: bold;"}selected="selected"{/if}>Pochylony-pogrubiony</option>
						</select>
						<select name="settings[h3_size]" style="width: 40px;">
							<option value="0.1" {if $settings.h3_size eq "0.1"} selected="selected"{/if}>0.1em</option>
							<option value="0.2" {if $settings.h3_size eq "0.2"} selected="selected"{/if}>0.2em</option>
							<option value="0.3" {if $settings.h3_size eq "0.3"} selected="selected"{/if}>0.3em</option>
							<option value="0.4" {if $settings.h3_size eq "0.4"} selected="selected"{/if}>0.4em</option>
							<option value="0.5" {if $settings.h3_size eq "0.5"} selected="selected"{/if}>0.5em</option>
							<option value="0.6" {if $settings.h3_size eq "0.6"} selected="selected"{/if}>0.6em</option>
							<option value="0.7" {if $settings.h3_size eq "0.7"} selected="selected"{/if}>0.7em</option>
							<option value="0.8" {if $settings.h3_size eq "0.8"} selected="selected"{/if}>0.8em</option>
							<option value="0.9" {if $settings.h3_size eq "0.9"} selected="selected"{/if}>0.9em</option>
							<option value="1.0" {if $settings.h3_size eq "1.0"} selected="selected"{/if}>1.0em</option>
							<option value="1.1" {if $settings.h3_size eq "1.1"} selected="selected"{/if}>1.1em</option>
							<option value="1.2" {if $settings.h3_size eq "1.2"} selected="selected"{/if}>1.2em</option>
							<option value="1.3" {if $settings.h3_size eq "1.3"} selected="selected"{/if}>1.3em</option>
							<option value="1.4" {if $settings.h3_size eq "1.4" or empty($settings.h3_size)} selected="selected"{/if}>1.4em</option>
							<option value="1.5" {if $settings.h3_size eq "1.5"} selected="selected"{/if}>1.5em</option>
							<option value="1.6" {if $settings.h3_size eq "1.6"} selected="selected"{/if}>1.6em</option>
							<option value="1.7" {if $settings.h3_size eq "1.7"} selected="selected"{/if}>1.7em</option>
							<option value="1.8" {if $settings.h3_size eq "1.8"} selected="selected"{/if}>1.8em</option>
							<option value="1.9" {if $settings.h3_size eq "1.9"} selected="selected"{/if}>1.9em</option>
							<option value="2.0" {if $settings.h3_size eq "2.0"} selected="selected"{/if}>2.0em</option>
							<option value="2.1" {if $settings.h3_size eq "2.1"} selected="selected"{/if}>2.1em</option>
							<option value="2.2" {if $settings.h3_size eq "2.2"} selected="selected"{/if}>2.2em</option>
							<option value="2.3" {if $settings.h3_size eq "2.3"} selected="selected"{/if}>2.3em</option>
							<option value="2.4" {if $settings.h3_size eq "2.4"} selected="selected"{/if}>2.4em</option>
							<option value="2.5" {if $settings.h3_size eq "2.5"} selected="selected"{/if}>2.5em</option>
						</select>											
						<br/>
						<select name="settings[h3_grubosc_lini]" style="width: 40px;" title="Grubość lini podkreślenia">
						<option value="0" {if $settings.h3_grubosc_lini eq "0"} selected="selected"{/if}>0</option>
						<option value="1" {if $settings.h3_grubosc_lini eq "1" or $settings.h3_grubosc_lini eq ""} selected="selected"{/if}>1</option>
						<option value="2" {if $settings.h3_grubosc_lini eq "2"} selected="selected"{/if}>2</option>
						<option value="3" {if $settings.h3_grubosc_lini eq "3"} selected="selected"{/if}>3</option>
						<option value="4" {if $settings.h3_grubosc_lini eq "4"} selected="selected"{/if}>4</option>
						<option value="5" {if $settings.h3_grubosc_lini eq "5"} selected="selected"{/if}>5</option>
						</select>
						
					</td>
				</tr>
				<tr>
					<th>Kolor czcionki nagł.H4<br/>
						Kolor podkreślenia H4<br/>
						Styl/Wielkość czcionki<br/>
						Grubość podkreślenia
					</th>
					<td align="right">
						<input type="text" name="settings[h4_kolor]" id="h4_kolor" value="{$settings.h4_kolor|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 60px; background: {$settings.h4_kolor|default:'#000000'};"/>
						<br/>	
						<input type="text" name="settings[h4_kolor_lini]" id="h4_kolor_lini" value="{$settings.h4_kolor_lini|default:'#000000'}"  readonly="readonly" style="cursor:pointer; width: 60px; background: {$settings.h4_kolor_lini|default:'#000000'};"/>
						<br/>
						<select name="settings[h4_style]" style="width: 60px;">
							<option value="font-style: normal;" {if $settings.h4_style eq "font-style: normal;"}selected="selected"{/if}>Normalny</option>
							<option value="font-style: italic;" {if $settings.h4_style eq "font-style: italic;"}selected="selected"{/if}>Pochylony</option>
							<option value="font-style: normal; font-weight: bold;" {if $settings.h4_style eq "font-style: normal; font-weight: bold;"}selected="selected"{/if}>Pogrubiony</option>
							<option value="font-style: italic; font-weight: bold;" {if $settings.h4_style eq "font-style: italic; font-weight: bold;"}selected="selected"{/if}>Pochylony-pogrubiony</option>
						</select>
						<select name="settings[h4_size]" style="width: 40px;">
							<option value="0.1" {if $settings.h4_size eq "0.1"} selected="selected"{/if}>0.1em</option>
							<option value="0.2" {if $settings.h4_size eq "0.2"} selected="selected"{/if}>0.2em</option>
							<option value="0.3" {if $settings.h4_size eq "0.3"} selected="selected"{/if}>0.3em</option>
							<option value="0.4" {if $settings.h4_size eq "0.4"} selected="selected"{/if}>0.4em</option>
							<option value="0.5" {if $settings.h4_size eq "0.5"} selected="selected"{/if}>0.5em</option>
							<option value="0.6" {if $settings.h4_size eq "0.6"} selected="selected"{/if}>0.6em</option>
							<option value="0.7" {if $settings.h4_size eq "0.7"} selected="selected"{/if}>0.7em</option>
							<option value="0.8" {if $settings.h4_size eq "0.8"} selected="selected"{/if}>0.8em</option>
							<option value="0.9" {if $settings.h4_size eq "0.9"} selected="selected"{/if}>0.9em</option>
							<option value="1.0" {if $settings.h4_size eq "1.0"} selected="selected"{/if}>1.0em</option>
							<option value="1.1" {if $settings.h4_size eq "1.1"} selected="selected"{/if}>1.1em</option>
							<option value="1.2" {if $settings.h4_size eq "1.2"} selected="selected"{/if}>1.2em</option>
							<option value="1.3" {if $settings.h4_size eq "1.3"} selected="selected"{/if}>1.3em</option>
							<option value="1.4" {if $settings.h4_size eq "1.4" or empty($settings.h4_size)} selected="selected"{/if}>1.4em</option>
							<option value="1.5" {if $settings.h4_size eq "1.5"} selected="selected"{/if}>1.5em</option>
							<option value="1.6" {if $settings.h4_size eq "1.6"} selected="selected"{/if}>1.6em</option>
							<option value="1.7" {if $settings.h4_size eq "1.7"} selected="selected"{/if}>1.7em</option>
							<option value="1.8" {if $settings.h4_size eq "1.8"} selected="selected"{/if}>1.8em</option>
							<option value="1.9" {if $settings.h4_size eq "1.9"} selected="selected"{/if}>1.9em</option>
							<option value="2.0" {if $settings.h4_size eq "2.0"} selected="selected"{/if}>2.0em</option>
							<option value="2.1" {if $settings.h4_size eq "2.1"} selected="selected"{/if}>2.1em</option>
							<option value="2.2" {if $settings.h4_size eq "2.2"} selected="selected"{/if}>2.2em</option>
							<option value="2.3" {if $settings.h4_size eq "2.3"} selected="selected"{/if}>2.3em</option>
							<option value="2.4" {if $settings.h4_size eq "2.4"} selected="selected"{/if}>2.4em</option>
							<option value="2.5" {if $settings.h4_size eq "2.5"} selected="selected"{/if}>2.5em</option>
						</select>										
						<br/>
						<select name="settings[h4_grubosc_lini]" style="width: 40px;" title="Grubość lini podkreślenia">
							<option value="0" {if $settings.h4_grubosc_lini eq "0"} selected="selected"{/if}>0</option>
							<option value="1" {if $settings.h4_grubosc_lini eq "1" or $settings.h4_grubosc_lini eq ""} selected="selected"{/if}>1</option>
							<option value="2" {if $settings.h4_grubosc_lini eq "2"} selected="selected"{/if}>2</option>
							<option value="3" {if $settings.h4_grubosc_lini eq "3"} selected="selected"{/if}>3</option>
							<option value="4" {if $settings.h4_grubosc_lini eq "4"} selected="selected"{/if}>4</option>
							<option value="5" {if $settings.h4_grubosc_lini eq "5"} selected="selected"{/if}>5</option>
						</select>
						
					</td>
				</tr>				
			</table>
		</td>
	</tr>
	{if isset($typ_domeny) and $typ_domeny eq 'main'}
	<tr>
		<td width="100%" valign="top" style="padding: 1px;">
			<h2>Szablon</h2>
			<input type="hidden" name="settings[css]" value="{$settings.szablon|default:'0000'}/ramki/{$settings.ramka_theme|default:'000'}_{$settings.ramka_theme_kolor|default:'000000'}/{$settings.szablon|default:'0000'}_{$settings.ramka_theme|default:'000'}_{$settings.ramka_theme_kolor|default:'000000'}.css">
			<p>				
					<select name="settings[szablon]" class="theme-select" onchange="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page}.html?szablon='+this.value;">
					{foreach from=$szablony key=numer item=opis}		
						<option value="{$numer}" {if $settings.szablon eq $numer}selected="selected"{/if}>{$opis}</option>
					{/foreach}
					</select>	
			</p>		
		
			<h2>Kształt i kolor ramek strony</h2>
			<p id="select_theme">				
				{foreach from=$ramki  key=theme item=v}
					<input type="radio" name="settings[ramka_theme]" value="{$theme}"  {if $settings.ramka_theme eq $theme or empty($settings.ramka_theme) and $theme eq '000'}checked="checked"{/if}/> Ramka {$theme} 
					<select name="settings[ramka_theme_kolor]" class="theme-select">
					{foreach from=$v key=kolor item=opis}		
						<option value="{$kolor}" {if $settings.ramka_theme_kolor eq $kolor}selected="selected"{/if}>{$opis}</option>
					{/foreach}
					</select>
				 <br/>
				{/foreach}			
			</p>
		</td>
	</tr>
	{/if}	
	<tr>
		<th>
			<input type="submit" value="Zapisz ustawienia"/>
			 <input type="button" value="Przywróć domyślne" onclick="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page},Panel_Theme,resetujUstawienia.html';"/>
		</th>
	</tr>	
</table>
</form>
{literal}
<script type="text/javascript" charset="utf-8">
var pickColor = {
	obj: '',
	event: function(id_){
		pickColor.obj = $('#'+id_).ColorPicker({
			onSubmit: function(hsb, hex, rgb) {
				$('#'+id_).val('#'+hex);
			},
			onBeforeShow: function () {
				$(this).ColorPickerSetColor(this.value.replace('#',''));
			}
		})
		.bind('keyup', function(){
			$(this).ColorPickerSetColor(this.value.replace('#',''));
		});
	}
}
$(function() {
	pickColor.event('menu_top_kolor_tla');
	pickColor.event('menu_top_kolor_czcionki');
	pickColor.event('menu_top_kolor_czcionki_mousover');
	pickColor.event('menu_top_kolor_tla_select');
	pickColor.event('main_kolor_tla');
	pickColor.event('body_kolor_tla');
	pickColor.event('main_kolor_czcionki_p');
	pickColor.event('main_kolor_czcionki_a');
	pickColor.event('h1_kolor');
	pickColor.event('h2_kolor');
	pickColor.event('h3_kolor');
	pickColor.event('h4_kolor');
	pickColor.event('h1_kolor_lini');
	pickColor.event('h2_kolor_lini');
	pickColor.event('h3_kolor_lini');
	pickColor.event('h4_kolor_lini');

});
</script>
{/literal}
<!-- $settings|@debug_print_var} -->